
#ifndef _WORKTHREADMANAGER_H_
#define _WORKTHREADMANAGER_H_

class WorkThreadManager : public QObject
{
    Q_OBJECT
public:
    ~WorkThreadManager();

    void addToNetThread(QObject *obj);

    /**********************************************/
    void init(void);

    static WorkThreadManager* Instance()
    {
        if (!s_Instance)
        {
            s_Instance = new WorkThreadManager;
        }
        return s_Instance;
    }

private:
    explicit WorkThreadManager(QObject *parent = Q_NULLPTR);

    static WorkThreadManager *s_Instance;

    QThread *mNetThread;
};

#endif

